﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;

namespace Client.ViewModels {
    class ChildWindowViewModel : ViewModelBase {
        private string textBox1Text;

        public ChildWindowViewModel() {
            TextBox1Text = "测试文本";
        }
        public string TextBox1Text {
            get {
                return textBox1Text;
            }
            set {
                textBox1Text = value;
                RaisePropertyChanged("TextBox1Text");
            }
        }

        public ICommand Button1Cmd {
            get {
                return new DelegateCommand((obj) => {
                    TextBox1Text = "Button1Cmd";
                });
            }
        }

        public ICommand Button2Cmd {
            get {
                return new DelegateCommand((obj) => {
                    TextBox1Text = "Button2Cmd";
                });
            }
        }
    }
}
